﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Configuration.Provider;
using System.Linq;
using System.Text;

namespace Acc.Lib.Providers
{
    public class ActionProviderCollection:ProviderCollection
    {
        public new ActionProvider this[String name]
        {
            get { return (ActionProvider) base[name]; }
        }

        public override void Add(ProviderBase provider)
        {
            if (provider == null) throw new ArgumentNullException("provider");
            if(!(provider is ActionProvider))
                throw new ArgumentException("Invalid provider type", "provider");

            base.Add(provider);

        }
    }
}
